#include <Rectangle.h>

Rectangle::Rectangle(const Uint32 length, const Uint32 width)
{
  length_m = length;
  width_m = width;
}

Uint32 Rectangle::calcPerimeter(void) const 
{
  return (2 * (length_m + width_m));
}

Uint32 Rectangle::calcArea(void) const
{
  return (length_m * width_m);
}

void Rectangle::setWidth(Uint32 width)
{
  width_m = width;
}

void Rectangle::setLength(Uint32 length)
{
  length_m = length;
}

Uint32 Rectangle::getWidth(void) const
{
  return width_m;
}

Uint32 Rectangle::getLength(void) const
{
  return length_m; 
}
